import App from './App'
import api from './commons/api.js'
import Goto from './commons/goto.js'
import request from './commons/request.js'
import boboMessage from '@/components/bobo-message/bobo-message.vue'
import promise from '@/commons/promise.js'
import { getLocalTime } from '@/commons/utiles.js'
// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

const systemInfo = uni.getSystemInfoSync()
Vue.prototype.$systemInfo = systemInfo
Vue.prototype.$http = request
Vue.prototype.$api = api
Vue.prototype.$goto = Goto
Vue.prototype.$promise = promise
Vue.component('message', boboMessage)
Vue.filter('timeForm', (val) => {
	return getLocalTime(val)
})


const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif